import java.util.*;
import java.sql.Timestamp;

import java.util.Vector;

public class PopupRemind {
	static Vector<Timestamp> time;
	
	PopupRemind() throws Exception{
		time = new Vector<Timestamp>();
		//DatabaseCtrl.close();
		DatabaseCtrl.init();
		time = DatabaseCtrl.getDetailTimestamp();
		
	}

	public static void main(String[] args) {
		long tNow = System.currentTimeMillis();
		for(Timestamp x:time) {
			long t = x.getTime();
			if(t-tNow<=30*1000 && t-tNow>=0) {
				//�����������ѽ���
				Popup myNote = new Popup(x);
				myNote.launch();
			}
		}	
	}

}
